Class
asInteger!
2253065!
converting!
0Integer! !
#categories!
initialization!
accessing!
iteration!
printing!
converting! !
to:by:do:!
2252176!
iteration!
0RationalNumber:RationalNumber:[RationalNumber]:Object! !
#superclassTypeString!
RationalNumber! !
#group!
base! !
numerator!
2252043!
accessing!
0Integer! !
#extensionsAreSubtypes!
true! !
#revision!
$Revision: 1.6 $! !
#instanceVariableString!
numerator <Int>
denominator <Int>
		! !
printOn:!
2252863!
printing!
0CharOutputStream:! !
denominator!
2251740!
accessing!
0Integer! !
numerator:denominator:!
2251522!
initialization!
0Int:Int:! !
#subtype!
true! !
#branded!
true! !
#comment!
Fractions are exact non-integer rational numbers.

%invariant: A fraction should always be in reduced form.  The denominator should never be 1 (it should reduce to an integer
    instead).
%invariant: the denominator should never be negative.  This invariant should hold even if we do a non-simplifying implementation.

Tags: %BlueBook %User

(c) 1995-1997 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 
Use and distribution of this software is subject to the terms of the attached source license.   $Revision: 1.6 $
! !
#abstract!
true! !
to:do:!
2252592!
iteration!
0RationalNumber:[RationalNumber]:Object! !
hash!
2251877!
accessing!
0Int! !
